package com.garbuz.svnadmin.services
{
	public class UserService extends HTTPServiceBase
	{
		public function UserService(resultHandler:Function=null, errorHandler:Function=null)
		{
			super(resultHandler, errorHandler);
		}
		
		public function getUsers():void
		{
			super.doCall("getUsers", arguments);
		}
		
		public function createUser(userName:String):void
		{
			super.doCall("createUser", arguments);
		}
		
		public function removeUser(userName:String):void
		{
			super.doCall("removeUser", arguments);
		}

		public function setPassword(userName:String, hash:String):void
		{
			super.doCall("setPassword", arguments);
		}

		public function createGroup(groupName:String):void
		{
			super.doCall("createGroup", arguments);
		}

		public function removeGroup(groupName:String):void
		{
			super.doCall("removeGroup", arguments);
		}

		public function submitGroupUsers(groupName:String, userNames:Vector.<String>):void
		{
			super.doCall("submitGroupUsers", arguments);
		}

		public function submitUserGroups(userName:String, groupNames:Vector.<String>):void
		{
			super.doCall("submitUserGroups", arguments);
		}
	}
}